Automatic adjustment of video orientation

ABSTRACT

Methods, systems and computer program products for automatic adjustment of video orientation are provided. A computer-implemented method may include receiving a video comprising a plurality of image frames, receiving, via a user interface, a user request to initiate an automatic correction of the video that was recorded by the video recording device of the mobile device that was shaken during the recording, performing the automatic correction of the video, comprising automatically adjusting one or more of the plurality of image frames in the video to correct shaking, presenting the user interface providing a playback of a preview of the adjusted video, and presenting, in the user interface, alongside the playback of the preview of the adjusted video, a concurrent playback of the video originally recorded by the video recording device of the mobile device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of co-pending U.S. patent applicationSer. No. 15/701,403, filed Sep. 11, 2017, which is a continuation ofU.S. patent application Ser. No. 13/838,686, filed on Mar. 15, 2013, nowU.S. Pat. No. 9,762,848, which is herein incorporated by reference.

TECHNICAL FIELD

The field generally relates to video images and more specifically to thepresentation of video images.

BACKGROUND

Many websites allow users to share videos with others around the world.In addition, technological advancements also have made it increasinglyconvenient for users to capture and share their own video content. Forexample, smartphones having one or more high-quality digital cameras,gyroscopic sensors, abundant storage space, and mobile broadband allowusers to flexibly record and share videos from virtually anywhere.

However, user generated videos may be captured from a variety ofdifferent orientations, which can result in the incorrect display ofvideo content. For example, a user may inadvertently or mistakenlyrotate a recording device while capturing a video. As a result, one ormore portions of the video may be displayed sideways or upside down.Further, a user may not become aware of such a result until a video islater presented on a fixed display.

SUMMARY

Embodiments generally relate to the adjustment and correction of videoimages. In one embodiment, a computing device receives a videocomprising a plurality of image frames and detects an orientation changein the video. The computing device then determines a standardorientation for the video and adjusts the video to the standardorientation by resizing one or more of the image frames in the video androtating one or more of the image frames in the video to the standardorientation.

In another embodiment, a computer-readable storage medium hasinstructions recorded thereon, that when executed by a processor, causethe processor to perform operations. The instructions includecomputer-readable program code configured to cause the processor toreceive a video comprising a plurality of image frames, detect anorientation change in the video, determine a standard orientation forthe video, and adjust the video to the standard orientation by resizingone or more of the image frames and by rotating one or more of the imageframes to the standard orientation.

In a further embodiment, a system includes a memory and a processingdevice coupled to the memory that is configured to receive a videocomprising a plurality of image frames, detect an orientation change inthe video, determine a standard orientation for the video, and adjustthe video to the standard orientation by resizing one or more of theimage frames and by rotating one or more of the image frames to thestandard orientation.

Further embodiments, features, and advantages of the disclosure, as wellas the structure and operation of the various embodiments of thedisclosure are described in detail below with reference to accompanyingdrawings.

BRIEF DESCRIPTION OF THE DRAWINGS

Various embodiments of the present disclosure will be understood morefully from the detailed description given below and from theaccompanying drawings of various embodiments of the disclosure. In thedrawings, like reference numbers may indicate identical or functionallysimilar elements. The drawing in which an element first appears isgenerally indicated by the left-most digit in the correspondingreference number.

FIG. 1 illustrates an exemplary system architecture, in accordance withvarious embodiments of the present disclosure.

FIG. 2 is a block diagram of a video adjustment system, in accordancewith an embodiment.

FIG. 3 is a flow diagram illustrating automatic adjustment of videoorientation, according to an embodiment.

FIG. 4 is a flow diagram illustrating additional aspects of automaticadjustment of video content, according to an embodiment.

FIG. 5 is a block diagram of an exemplary computer system that mayperform one or more of the operations described herein.

DETAILED DESCRIPTION

Millions of user-generated videos are shared on the Internet each day.Many of these videos have been recorded on mobile devices, such as smartphones and digital cameras. In addition, many of these devices areequipped with one or more sensors, such as gyroscopes andaccelerometers, which capture orientation and positioning of a device.

While mobile devices offer users convenience and flexibility incapturing and sharing their own videos, it is very easy to inadvertentlymove or rotate a mobile device when recording a video. As a result, oneor more portions of a video may be captured from an incorrectorientation. In addition, one or more portions of a video also maycontain unintended shaking and/or movement. However, a user is nottypically aware of the unintended result until a video is played back ata later time, for example, on a fixed display such as a computermonitor.

In one example, a user may capture a video using a smartphone. The userthen may upload the video to a video sharing or social networkingwebsite. The user then may preview the uploaded video before sharing it,for example, either publicly or privately. During the preview, the usermay discover that multiple segments of the video have been captured fromone or more incorrect orientations. For example, different portions ofthe video may be displayed sideways, upside-down and/or at an angle. Tocorrect the video, the user should transfer the video content to asystem with video editing software and manually adjust one or moresegments of the video. The user then should upload the manuallycorrected video to the website. Thus, the detection and correction oforientation changes in user-captured video content are both inconvenientand burdensome to users.

Embodiments of the present disclosure address the above deficiencies byadjusting video content to correct segments of a video that have beencaptured from one or more incorrect orientations. Detection andcorrection of misoriented video content may be performed automaticallyso that a user does not need to perform manual correction using a videoediting software tool.

For example, a user may upload a video from a mobile device to a videosharing website providing automatic adjustment of video content. Thewebsite may analyze positional and/or orientation data associated withimage frames from the video to detect that one or more orientationchanges, shaking, and/or excessive movement occur in the video. Thewebsite may notify the user of the condition, may allow the user topreview the video, and may allow the user to select a standardorientation and/or baseline alignment that will be used to correct thevideo. The website then may correct the video so that the orientation ofeach video frame is consistent with the standard orientation and/orbaseline alignment selected by the user. The user then may view andshare the corrected video without having to manually adjust video imageframes using a video editing tool. Thus, the video adjustment system mayautomatically detect and correct video content recorded in one or moredifferent orientations at various times throughout an entire video. Thevideo adjustment system also may detect and correct shaking and movementdetected at various times throughout a video. Further, the adjustmentmay be applied to one or more video image frames to produce an adjustedvideo that is displayed, for example, consistently in a single fixed,standard orientation and/or position.

FIG. 1 illustrates an exemplary system architecture, in accordance withvarious embodiments of the present disclosure. The system architecture100 includes a server machine 110, a data store 140 and client machines102A-102N connected to a network 104. Network 104 may be a publicnetwork (e.g., the Internet), a private network (e.g., a local areanetwork (LAN) or wide area network (WAN)), or a combination thereof.

Data store 140 is persistent storage that is capable of storing varioustypes of data, such as video and image content. In some embodiments datastore 140 might be a network-attached file server, while in otherembodiments data store 140 might be some other type of persistentstorage such as an object-oriented database, a relational database, andso forth. Data store 140 may include user generated content (videoand/or image content) that is uploaded by client machines 102A-102N. Thedata may additionally or alternatively include content provided by oneor more other parties. Image and video content may be added to the datastore 140 as discrete files (e.g., motion picture experts group (MPEG)files, windows media video (WMV) files, joint photographic experts group(JPEG) files, graphics interchange format (GIF) files, portable networkgraphics (PNG) files, etc.) or as components of a single compressed file(e.g., a zip file).

In an embodiment, data store 140 is used to store video and imagecontent comprising position and/or orientation metadata. In anotherembodiment, data store 140 stores one or more of video and imagecontent, and position and/or orientation metadata that is associated orlinked to the video and image content.

The client machines 102A-102N may be personal computers (PC), laptops,mobile phones, tablet computers, a camera, or any other computingdevice. The client machines 102A-102N may run an operating system (OS)that manages hardware and software of the client machines 102A-102N. Abrowser (not shown) may run on the client machines (e.g., on the OS ofthe client machines). The browser may be a web browser that can accesscontent served by a web server. The browser may display video contentand other visual media provided by a web server and may allow editing ofvideos and other visual media.

Server machine 110 may be a rackmount server, a router computer, apersonal computer, a portable digital assistant, a mobile phone, alaptop computer, a tablet computer, a camera, a video camera, a netbook,a desktop computer, a media center, or any combination of the above.Server machine 110 may include a web server 120 and a video adjustmentsystem 130. In alternative embodiments, the web server 120 and videoadjustment system 130 may run on one or more different machines.

Web server 120 may serve video content from data store 140 to clients102A-102N. Clients 102A-102N may locate, access and view video contentfrom web server 120 using a web browser. Web server 120 also may receivevideo content from clients 102A-102N that is saved in data store 140 forpurposes that may include preservation and distribution.

Web server 120 may receive queries for video content and performsearches for video content using data store 140 to locate video datasatisfying the search queries. Web server 120 may then send to a client102A-102N video data results matching the search query. In oneembodiment, web server 120 provides an application configured to allowclients 102A-102N to upload, preview, edit, display and publish videocontent. For example, web server 120 may include or access one or moreapplications providing such functionality. In one example, web server120 communicates with one or more application servers that may be hostedwith or hosted apart from web server 120 on one or more server machines110. Such functionality also may be provided, for example, by one ormore different web applications, standalone applications, systems,plugins, web browser extensions, and application programming interfaces(APIs).

A video is a set of sequential image frames representing a scene inmotion. For example, a series of sequential images may be capturedcontinuously or later reconstructed to produce animation. Video contentmay be presented in various formats including, but not limited to,analog, digital, two-dimensional and three-dimensional video. Further,video content may include movies, video clips or any set of animatedimages to be displayed in sequence.

Video adjustment system 130 may analyze video content to determinewhether one or more orientation changes are present in the videocontent. For example, the video adjustment system 130 may analyzeorientation information associated with one or more video image frames.The orientation information may include, for example, a specificposition and/or orientation of a recording device at the moment when avideo image frame is/was captured. For example, a video recording devicemay include one or more sensors, such as gyroscopic sensors and/oraccelerometers that measure orientation and/or position of the device.The video recording device may receive and store such measurements fromthe one or more sensors as metadata within corresponding video imageframes. In another example, measurements such as position and/ororientation data that are associated with one or more video image framesmay be stored apart from the video image frames and may beassociated/referenced at a later time.

In one embodiment, video adjustment system 130 may determine whether aseries of video image frames associated with a video uploaded by aclient 102A-102N have been recorded from multiple orientations. Videoadjustment system 130 also may perform automatic adjustment of videocontent to correct one or more changes in video image frame orientationoccurring throughout a video.

In an embodiment, web server 120 provides a web application to clients102A-102N, which may reside on one or more server machines 110. The webapplication may include a graphical user interface configured to allowusers to upload, display and manage video content. The web applicationalso may include or utilize a video adjustment system 130. In oneembodiment, the video adjustment system 130 may analyze video contentduring an upload process automatically based on one or more of a systemsetting, user preference, user request, or default. Video contentanalysis also may be performed by video adjustment system 130, forexample, based on a user request received after the video content hasbeen uploaded to a data store 140. A user may initiate a request, forexample, using one or more commands (e.g., voice, text, motion) or byperforming one or more actions/interactions with the graphical userinterface (e.g., button click, keyboard shortcut).

In one embodiment, video adjustment system 130 determines that videocontent has been recorded in multiple orientations and provides acorresponding indication to a user (e.g., content owner, contentadministrator, content viewer). The web application may notify the userabout the condition using a graphical user interface. For example, theweb application may display a message or alert, update a label, redirector refresh the interface, and/or provide one or more additionalselectable controls (e.g., preview video orientation correction button,perform video orientation correction button).

In an embodiment, the graphical user interface is configured to allow auser to initiate video orientation correction, preview a full or sampleversion of adjusted video content with a proposed correction, saveadjusted video content, and replace existing video content with adjustedvideo content. The graphical user interface also may be furtherconfigured to allow a user to preview adjusted/corrected video content(e.g., sample clip, full-version) with corresponding original videocontent. For example, adjusted video content may be playedsimultaneously and alongside original video content to allowside-by-side comparison. In one embodiment, a full or sample version ofadjusted video content having a proposed corrected orientation isautomatically generated and available for preview upon user request.

FIG. 2 is a block diagram of a video adjustment system 130, inaccordance with an embodiment of the present disclosure. The videoadjustment system 130 includes a video receiving module 202, a videoanalysis module 204, a video orientation determination module 206, avideo adjustment module 208, and a video delivery module 210. In otherembodiments, functionality associated with one or more of videoreceiving module 202, video analysis module 204, video orientationdetermination module 206, video adjustment module 208, and videodelivery module 210 may be combined, divided and organized in variousarrangements.

In an embodiment, video adjustment system 130 is coupled to data store140 and working data store 240. Data store 140 includes video data 220and image data 230. Working data store 240 includes temporary video data250 and temporary image data 260.

Video data 220 generally refers to any type of moving image, whichincludes, but is not limited to movie films, videos, digital videos andother forms of animated drawings or display. For example, video data 220may include digital videos having a sequence of static image frames thatmay be stored as image data 230. Thus, each image frame may represent asnapshot of a scene that has been captured according to a time interval.

Video data 220 may include computer animations, includingtwo-dimensional and three-dimensional graphics. Video data 220 also mayinclude any sequence of images, including graphical drawings that createan illusion of movement.

Image data 230 generally refers to any projection of real space througha lens onto a camera sensor. Image data 230 includes, but is not limitedto, any type of two-dimensional image, three-dimensional image, videocontent and/or drawing.

In an embodiment, video adjustment system 130 utilizes working datastore 240 as temporary storage space to perform adjusting of video data220 and image data 230. Working data store 240 may include, for example,any type or combination of volatile and non-volatile storage (e.g.,disk, memory).

In one embodiment, working data store 240 contains temporary video data250 and temporary image data 260. For example, temporary video data 250may include one or more copies of video data 220, such as original andmodified/adjusted versions. Further, temporary image data 260 mayinclude one or more copies of image data 230, such as original andmodified/adjusted video image frames.

Working data store 240 also may include temporary data and resultsproduced by video adjustment system 130. For example, working data store240 may include original video content, original video image frames,corrected video image frames, and adjusted video content.

Further, video adjustment system 130 may use working data store 240, forexample, to perform adjustment calculations, to persist intermediateprocessing results, and to provide adjusted video content havingcorrected video orientation to users.

Video receiving module 202 receives video content from one or moresources. For example, video receiving module may receive video contentthat includes a plurality of video image frames on a server machine 110or a client device 102A-102N, such as a camera or a smartphone. In oneexample, video receiving module 202 receives video content that has beenrecorded and stored directly on the same computing device. In anotherexample, video receiving module 202 receives video content from anothersource, such as an external video recording device, a different client102A-102N, or a server machine 110.

In an embodiment, video analysis module 204 analyzes video data 220and/or image data 230 to determine when a series of video image framesassociated with video content have been recorded from one or moredifferent orientations. For example, visual analysis module 204 may readand compare positional and/or orientation-based metadata associated withone or more video image frames. The video analysis module 204 may, forexample, compare position and/or orientation metadata between and/oracross multiple video image frames to determine whether orientationchanges, shaking, and/or movement occur in the video content.

In one embodiment, video analysis module 204 detects a change in videoorientation based on a threshold. For example, a threshold may bedefined to specify a degree of rotation between two or more video imageframes that will be considered an orientation change. The threshold maybe provided, for example, as a user preference, system setting ordefault value.

Video orientation determination module 206 determines a standardorientation for the video content. In one embodiment, an originalorientation of a video may be determined as the standard orientation.The standard orientation for a video also may be determined based on themost common orientation detected throughout the video, a userpreference, a user selection, or orientation and/or size of a displaydevice/video player where the video is to be displayed.

Video adjustment module 208 performs adjustment and resizing of one ormore video image frames in a video. For example, video adjustment module208 may calculate a degree of rotation required to adjust a video imageframe from a non-standard orientation to the standard orientationdetermined for a video. The degree of rotation may be calculated, forexample, based on the difference between orientation of a video imageframe and the standard orientation. The video adjustment module 208 thenmay adjust the video image frame to the standard orientation based onthe calculated degree of rotation. In addition, video adjustment module208 also may resize video image frames. For example, video adjustmentmodule may extend resolution of video image frames and/or crop videoimage frames to provide a uniform video image display size throughout anadjusted video.

Video delivery module 210 generates an adjusted video in the standardorientation. In an embodiment, video delivery module 210 generates anadjusted video in the standard orientation using a set of adjusted videoframes received from video adjustment module 208. Video delivery module210 then may provide the adjusted video in the standard orientation to auser for display.

FIG. 3 is a flow diagram illustrating automatic adjustment of videoorientation, according to an embodiment. The method 300 is performed byprocessing logic that may comprise hardware (circuitry, dedicated logic,etc.), software (such as is run on a general purpose computer system ora dedicated machine), or a combination of both. In one embodiment, themethod 300 is performed by the server machine 110 of FIG. 1. The method300 may be performed by video adjustment system 130 running on servermachine 110 or one or more other computing devices.

Method 300 begins at stage 302, when video content is received. In anembodiment, video receiving module 202 receives video content thatincludes a plurality of video image frames. For example, video receivingmodule 202 may receive video content that has been recorded and storedon the same computing device. In another embodiment, video receivingmodule 202 may receive video content from another source, such as adifferent computer system.

At stage 304, an orientation change occurring in the video content isdetected. In an embodiment, video analysis module 204 analyzes videoimage frames from video content received at stage 302. For example,video analysis module may analyze position and/or orientation metadatastored within video image frames to determine when an orientation changehas occurred in a video.

For example, a video recording device may include and continuouslymonitor device sensors, such as one or more gyroscopes, as video contentis recorded. The video recording device then may store positional and/ororientation information received from one or more of the sensors invideo image frames as metadata. In one embodiment, position and/ororientation data is captured continuously by a video recording deviceand stored in each respective video image frame as metadata. In anotherembodiment, only changes to position and/or orientation data arecaptured in the video image frames as metadata when the changes occurduring video recordation.

In one embodiment, orientation data stored in one or more image framesmay be compared to determine whether an orientation change has occurredin a video. For example, an orientation change may be detected when asingle or cumulative difference in orientation between two or more videoimage frames exceeds one or more defined thresholds.

In another embodiment, orientation and/or position data associated withone or more video image frames may be compared to detect and correctshaking and/or other unintended or disruptive movement that occursduring a recorded video. In one example, orientation and/or positiondata associated with one or more video image frames is used to establisha baseline alignment (e.g, a standard orientation or another standardposition). Video image frames that deviate from the established baselinealignment may be adjusted to the determined baseline alignment tocorrect shaking and/or other unintended or disruptive movement occurringacross video image frames.

At stage 306 a standard orientation for displaying the video content isdetermined. In an embodiment, a standard orientation is a single, fixedorientation used to display video content. For example, a standardorientation may be determined based on the original orientation of avideo, the most common orientation detected throughout a video, a userpreferred playback orientation, a user selected orientation, orientationof a device or video player where video content is to be displayed,and/or one or more attributes of a video player that will display thevideo content (e.g., video player height, width, screen position,orientation, is fixed, is modifiable, etc.).

At stage 308, the video content is adjusted to the standard orientation.In an embodiment, video adjustment module 208 performs adjustment andresizing of one or more video image frames in a video. For example,video adjustment module 208 may calculate a degree of rotation requiredto adjust a video image frame from its original orientation to thestandard orientation. Video adjustment module 208 also may resize videocontent to a standard display resolution.

In an embodiment, video adjustment module 208 determines a degree ofrotation required to adjust a video image frame to the standardorientation. In one example, video adjustment module 208 calculates thedifference between orientation of a recorded video frame and thestandard orientation determined for a video. Video orientation module208 then may adjust the video frame based on the determination tocorrect the variation.

In addition, video adjustment module 208 also may resize video imageframes. For example, video adjustment module 208 may crop video imageframes to provide a standard display size for an adjusted video and/orto fit a portion of a video image into a different orientation orplayback window.

In an embodiment, video adjustment module 208 calculates a standarddisplay size for a video based on the shortest sides of all video imageframes. For example, a video with a landscape orientation resolution of3000×2000 and a portrait orientation resolution of 2000×3000 would havea standard display size of 2000×2000. Thus, the middle 2000×2000 squareregions of both 2000×3000 portrait orientation video image frames and3000×2000 landscape orientation video image frames may be adjusted to astandard orientation and displayed together at a common display size of2000×2000.

In one example, each 2000×3000 portrait orientation video image frame iscropped so that the middle 2000×2000 region is retained. The croppedportrait orientation video image frame then may be rotated, centered,and displayed with 3000×2000 landscape video frames in an adjustedvideo.

In another example, the middle 2000×2000 square of a 3000×2000 landscapeorientation video image frame may be rotated, centered, and displayedwith 2000×3000 portrait orientation video frames in an adjusted video.

In another embodiment, a video with an original 3000×2000 landscapeorientation resolution may be rotated to a 2000×3000 portraitorientation resolution. Further, 2000×3000 portrait orientation videoimage frames in the video then may be rotated to match the orientationof the adjusted landscape image frames and resized to a 1500×2000 areato keep the aspect ratio.

FIG. 4 is a flow diagram illustrating additional aspects of automaticadjustment of video content, according to an embodiment. The method 400is performed by processing logic that may comprise hardware (circuitry,dedicated logic, etc.), software (such as is run on a general purposecomputer system or a dedicated machine), or a combination of both.

At stage 402, video content is received. According to an embodiment,video content may be received or assembled from one or more sources. Forexample, video content may arrive as a single video file having a set ofsequential image frames. Additionally, a video file may be assembledand/or created from two or more images having a sequential ordering orrelationship. Stage 402 may be performed by, for example, videoreceiving module 202.

At stage 404, an orientation change and/or an alignment change (i.e.,shaking or video image movement) is detected in the video content. In anembodiment, orientation and/or position data from two or more videoimage frames is analyzed and compared to determine when an orientationchange and/or alignment change occurs in a video. In one example, anorientation change and/or an alignment change may be detected in a videowhen a change in orientation and/or position data between two or morevideo image frames exceeds a threshold. Stage 404 may be performed by,for example, video analysis module 204.

At stage 406, a user is notified of the detected orientation changeand/or alignment change in the video content. In one embodiment, a usermay receive a notification of a detected orientation change and/oralignment change on a device where the video content has been recorded.In another embodiment, a user may receive a notification from a videosharing or social networking website where the user has uploaded thevideo content. The notification provided to the user may indicate thatcamera rotation was detected in the video. In addition, the user may beprovided with one or more of an option to preview the video, to previewone or more detected changes in orientation or alignment, and toautomatically correct one or more detected orientation or alignmentchanges in the video. Further, the user may be prompted to select astandard orientation and/or baseline alignment for displaying the video.Stage 406 may be performed by, for example, video orientationdetermination module 206.

At stage 408, a standard orientation and/or baseline alignment to usefor displaying the video content is determined based on user feedback.In one example, a standard orientation and/or baseline alignment arereceived based on user input that has been received. For example, a usermay select a standard orientation and/or baseline alignment after beingnotified of a detected change in orientation and/or alignment in videocontent. The user also may select a standard orientation and/or baselinealignment after viewing a preview of the detected changes and/or otherportions of the video content.

In other embodiments a standard orientation may be determined based onthe original orientation and/or alignment of a video, the most commonorientation or alignment detected throughout a video, a user preferredplayback orientation, a user selected orientation/alignment, ororientation of a device or video player where video content is to bedisplayed. In an embodiment, adjustment of video content may beinitiated automatically by video adjustment system 130, based on inputreceived from a user, or based on a combination of both system and userinput. Stage 408 may be performed by, for example, video orientationdetermination module 208.

At stage 410, the video content is adjusted to the standard orientationand/or baseline alignment by modifying one or more of the video imageframes. In an embodiment, one or more of the image frames may beadjusted by rotating the image frames from a non-standard orientation tothe standard orientation determined at stage 408. Further, one or moreof the images frames also may be resized based on a standard videodisplay size determined for an adjusted video.

In one embodiment, video image frames are resized by extendingresolution of the video image frames to a square of the longest sides ofthe video. For example, a video with a landscape resolution of 3000×2000and a portrait resolution of 2000×3000 may be extended to 3000×3000.Thus, the video image frames may be rotated to the standard orientationand displayed together in an adjusted video without losing content.Stage 410 may be performed by, for example, video adjustment module 208.

At stage 412, the adjusted video is provided to the user in the standardorientation and/or baseline alignment. The adjusted video may begenerated based on the image frames that have been adjusted to astandard orientation and/or baseline alignment. The adjusted videocontent then may be presented to a user for preview or full display.

In an alternative embodiment, a video player or a video-playing websitemay not resize video image frames. Instead, the video image frames maybe rotated to a standard orientation and displayed in an original size.For example, landscape video image frames of 600×400 may be displayed intheir original size in a standard orientation. Portrait image frames of400×600 then may be displayed in their original size in a standardorientation by resizing the video player area (and vice versa). In oneexample, content such as text surrounding the video player/video-playingarea may be repositioned automatically one or more times when the videoplayer area is automatically resized. Stage 412 may be performed by, forexample, by video delivery module 210.

FIG. 5 illustrates a diagram of a machine in the exemplary form of acomputer system 500 within which a set of instructions, for causing themachine to perform any one or more of the methodologies discussedherein, may be executed. In alternative embodiments, the machine may beconnected (e.g., networked) to other machines in a LAN, an intranet, anextranet, or the Internet. The machine may operate in the capacity of aserver or a client machine in client-server network environment, or as apeer machine in a peer-to-peer (or distributed) network environment. Themachine may be a personal computer (PC), a tablet PC, a set-top box(STB), a Personal Digital Assistant (PDA), a cellular telephone, a webappliance, a server, a network router, switch or bridge, or any machinecapable of executing a set of instructions (sequential or otherwise)that specify actions to be taken by that machine. Further, while only asingle machine is illustrated, the term “machine” shall also be taken toinclude any collection of machines that individually or jointly executea set (or multiple sets) of instructions to perform any one or more ofthe methodologies discussed herein.

The exemplary computer system 500 includes a processing device(processor) 502, a main memory 504 (e.g., read-only memory (ROM), flashmemory, dynamic random access memory (DRAM) such as synchronous DRAM(SDRAM), double data rate (DDR SDRAM), or DRAM (RDRAM), etc.), a staticmemory 506 (e.g., flash memory, static random access memory (SRAM),etc.), and a data storage device 518, which communicate with each othervia a bus 530.

Processor 502 represents one or more general-purpose processing devicessuch as a microprocessor, central processing unit, or the like. Moreparticularly, the processor 502 may be a complex instruction setcomputing (CISC) microprocessor, reduced instruction set computing(RISC) microprocessor, very long instruction word (VLIW) microprocessor,or a processor implementing other instruction sets or processorsimplementing a combination of instruction sets. The processor 502 mayalso be one or more special-purpose processing devices such as anapplication specific integrated circuit (ASIC), a field programmablegate array (FPGA), a digital signal processor (DSP), a networkprocessor, or the like. The processor 502 is configured to executeinstructions 522 for performing the operations and steps discussedherein.

The computer system 500 may further include a network interface device508. The computer system 500 also may include a video display unit 510(e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), analphanumeric input device 512 (e.g., a keyboard), a cursor controldevice 514 (e.g., a mouse), and a signal generation device 516 (e.g., aspeaker).

The data storage device 518 may include a computer-readable storagemedium 528 on which is stored one or more sets of instructions 522(e.g., software) embodying any one or more of the methodologies orfunctions described herein. The instructions 522 may also reside,completely or at least partially, within the main memory 504 and/orwithin the processor 502 during execution thereof by the computer system500, the main memory 504 and the processor 502 also constitutingcomputer-readable storage media. The instructions 522 may further betransmitted or received over a network 520 via the network interfacedevice 508.

In one embodiment, the instructions 522 include instructions for a videoadjustment module (e.g., video adjustment system 130 of FIG. 1) and/or asoftware library containing methods that call a video adjustment module.While the computer-readable storage medium 528 (machine-readable storagemedium) is shown in an exemplary embodiment to be a single medium, theterm “computer-readable storage medium” should be taken to include asingle medium or multiple media (e.g., a centralized or distributeddatabase, and/or associated caches and servers) that store the one ormore sets of instructions. The term “computer-readable storage medium”shall also be taken to include any medium that is capable of storing,encoding or carrying a set of instructions for execution by the machineand that cause the machine to perform any one or more of themethodologies of the present disclosure. The term “computer-readablestorage medium” shall accordingly be taken to include, but not belimited to, solid-state memories, optical media, and magnetic media.

In the foregoing description, numerous details are set forth. It will beapparent, however, to one of ordinary skill in the art having thebenefit of this disclosure, that the present disclosure may be practicedwithout these specific details. In some instances, well-known structuresand devices are shown in block diagram form, rather than in detail, inorder to avoid obscuring the present disclosure.

Some portions of the detailed description have been presented in termsof algorithms and symbolic representations of operations on data bitswithin a computer memory. An algorithm is here, and generally, conceivedto be a self-consistent sequence of steps leading to a desired result.The steps are those requiring physical manipulations of physicalquantities. Usually, though not necessarily, these quantities take theform of electrical or magnetic signals capable of being stored,transferred, combined, compared, and otherwise manipulated. It hasproven convenient at times, for reasons of common usage, to refer tothese signals as bits, values, elements, symbols, characters, terms,numbers, or the like.

It should be borne in mind, however, that all of these and similar termsare to be associated with the appropriate physical quantities and aremerely convenient labels applied to these quantities. Unlessspecifically stated otherwise as apparent from the following discussion,it is appreciated that throughout the description, discussions utilizingterms such as “computing”, “comparing”, “applying”, “creating”,“ranking”, “classifying”, or the like, refer to the actions andprocesses of a computer system, or similar electronic computing device,that manipulates and transforms data represented as physical (e.g.,electronic) quantities within the computer system's registers andmemories into other data similarly represented as physical quantitieswithin the computer system memories or registers or other suchinformation storage, transmission or display devices.

Certain embodiments of the present disclosure also relate to anapparatus for performing the operations herein. This apparatus may beconstructed for the intended purposes, or it may comprise ageneral-purpose computer selectively activated or reconfigured by acomputer program stored in the computer. Such a computer program may bestored in a computer readable storage medium, such as, but not limitedto, any type of disk including floppy disks, optical disks, CD-ROMs, andmagnetic-optical disks, read-only memories (ROMs), random accessmemories (RAMs), EPROMs, EEPROMs, magnetic or optical cards, or any typeof media suitable for storing electronic instructions.

It is to be understood that the above description is intended to beillustrative, and not restrictive. Many other embodiments will beapparent to those of skill in the art upon reading and understanding theabove description. The scope of the disclosure should, therefore, bedetermined with reference to the appended claims, along with the fullscope of equivalents to which such claims are entitled.

What is claimed is:
 1. A computer-implemented method comprising:receiving, by a processing device, a video recorded by a video recordingdevice of a mobile device of a user, the video comprising a plurality ofimage frames; receiving, via a user interface, a user request toinitiate an automatic correction of the original video that was recordedby the video recording device of the mobile device that was shakenduring the recording, the video originally recorded by the videorecording device of the mobile device being stored in a data store as adiscrete video file; performing the automatic correction of the video toproduce a video file of an adjusted video, wherein performing theautomatic correction comprises automatically adjusting one or more ofthe plurality of image frames in the video to correct shaking,automatically generating the adjusted video, and saving the adjustedvideo in the data store; and presenting the user interface playing afull or sample version of the adjusted video saved in the data store toprovide a preview of the adjusted video, and additionally playing, inthe user interface, alongside the played full or sample version of theadjusted video saved in the data store, the discrete video file of thevideo originally recorded by the video recording device of the mobiledevice to allow side-by-side comparison of the adjusted video and thevideo originally recorded by the video recording device.
 2. Thecomputer-implemented method of claim 1, further comprising determiningthat shaking of the mobile device has occurred during recording of thevideo, wherein the shaking is determined for the video based on datastored by the video recording device for the plurality of image framesof the video, the data comprising position information of acorresponding image frame of the video, the position information beingindicative of shaking.
 3. The computer-implemented method of claim 2,wherein determining that the shaking of the mobile device has occurredduring recording of the video comprises: comparing a video recordingdevice position associated with a first image frame in the video to asecond video recording device position associated with a second imageframe in the video.
 4. The computer-implemented method of claim 1,further comprising: notifying the user of the shaking of the mobiledevice during the recording of the video.
 5. The computer-implementedmethod of claim 1, wherein automatically adjusting one or more of theplurality of image frames in the video to correct shaking furthercomprises: determining a baseline alignment for the video; and adjustingthe video in view of the baseline alignment, wherein the adjustingcomprises automatically adjusting one or more of the plurality of imageframes in the video to the baseline alignment to correct shaking.
 6. Thecomputer-implemented method of claim 1, further comprising: determiningthat an orientation change of the mobile device has occurred duringrecording of the video, wherein the orientation change is determined forthe video based on data stored by the video recording device in each ofthe plurality of image frames of the video, the data comprisingorientation information of a corresponding image frame of the video;determining a standard orientation for the video, the standardorientation being determined based on a most common orientation detectedthroughout the video, and one or more parameters of a video player topresent the video; and adjusting the video to the standard orientation.7. The computer-implemented method of claim 6, wherein adjusting thevideo to the standard orientation further comprises: determining adegree of rotation required to adjust the image frame to the standardorientation.
 8. The computer-implemented method of claim 6, whereinadjusting the video to the standard orientation further comprises:providing an interface to allow the user to adjust the video to thestandard orientation.
 9. The computer-implemented method of claim 6,wherein adjusting the video to the standard orientation furthercomprises: automatically resizing one or more of the plurality of imageframes in the video based on the standard orientation; and automaticallyrotating one or more of the plurality of image frames in the video tothe standard orientation.
 10. A non-transitory computer readable mediumhaving instructions stored thereon, that when executed by a processingdevice, cause the processing device to perform operations comprising:receiving a video recorded by a video recording device of a mobiledevice of a user, the video comprising a plurality of image frames;receiving, via a user interface, a user request to initiate an automaticcorrection of the original video that was recorded by the videorecording device of the mobile device that was shaken during therecording, the video originally recorded by the video recording deviceof the mobile device being stored in a data store as a discrete videofile; performing the automatic correction of the video to produce avideo file of an adjusted video, wherein performing the automaticcorrection comprises automatically adjusting one or more of theplurality of image frames in the video to correct shaking, automaticallygenerating the adjusted video, and saving the adjusted video in the datastore; and presenting the user interface playing a full or sampleversion of the adjusted video saved in the data store to provide apreview of the adjusted video, and additionally playing, in the userinterface, alongside the played full or sample version of the adjustedvideo saved in the data store, the discrete video file of the videooriginally recorded by the video recording device of the mobile deviceto allow side-by-side comparison of the adjusted video and the videooriginally recorded by the video recording device.
 11. Thenon-transitory computer readable medium of claim 10, wherein theoperations further comprise determining that shaking of the mobiledevice has occurred during recording of the video, wherein the shakingis determined for the video based on data stored by the video recordingdevice for the plurality of image frames of the video, the datacomprising position information of a corresponding image frame of thevideo, the position information being indicative of shaking.
 12. Thenon-transitory computer readable medium of claim 11, wherein determiningthat the shaking of the mobile device has occurred during recording ofthe video comprises: comparing a video recording device positionassociated with a first image frame in the video to a second videorecording device position associated with a second image frame in thevideo.
 13. The non-transitory computer readable medium of claim 11,wherein determining that the shaking of the mobile device has occurredduring recording of the video comprises: comparing a video recordingdevice position associated with a first image frame in the video to asecond video recording device position associated with a second imageframe in the video.
 14. The non-transitory computer readable medium ofclaim 10, wherein the operations further comprise: notifying the user ofthe shaking of the mobile device during the recording of the video. 15.The non-transitory computer readable medium of claim 10, wherein theoperations further comprise: determining that an orientation change ofthe mobile device has occurred during recording of the video, whereinthe orientation change is determined for the video based on data storedby the video recording device in each of the plurality of image framesof the video, the data comprising orientation information of acorresponding image frame of the video; determining a standardorientation for the video, the standard orientation being determinedbased on a most common orientation detected throughout the video, andone or more parameters of a video player to present the video; andadjusting the video to the standard orientation.
 16. The non-transitorycomputer readable medium of claim 15, wherein adjusting the video to thestandard orientation further comprises: determining a degree of rotationrequired to adjust the image frame to the standard orientation.
 17. Thenon-transitory computer readable medium of claim 15, wherein adjustingthe video to the standard orientation further comprises: providing aninterface to allow the user to adjust the video to the standardorientation.
 18. A system comprising: a memory; and a processing device,coupled to the memory, to: receive a video recorded by a video recordingdevice of a mobile device of a user, the video comprising a plurality ofimage frames; receive, via a user interface, a user request to initiatean automatic correction of the original video that was recorded by thevideo recording device of the mobile device that was shaken during therecording, the video originally recorded by the video recording deviceof the mobile device being stored in a data store as a discrete videofile; perform the automatic correction of the video to produce a videofile of an adjusted video, wherein performing the automatic correctioncomprises automatically adjusting one or more of the plurality of imageframes in the video to correct shaking, automatically generating theadjusted video, and saving the adjusted video in the data store; andpresent the user interface playing a full or sample version of theadjusted video saved in the data store to provide a preview of theadjusted video, and additionally playing, in the user interface,alongside the played full or sample version of the adjusted video savedin the data store, the discrete video file of the video originallyrecorded by the video recording device of the mobile device to allowside-by-side comparison of the adjusted video and the video originallyrecorded by the video recording device.
 19. The system of claim 18,wherein the processing device is to determine that the shaking of themobile device has occurred during recording of the video, wherein todetermine that the shaking has occurred, the processing device is tocompare a video recording device position associated with a first imageframe in the video to a second video recording device positionassociated with a second image frame in the video.
 20. The system ofclaim 18, wherein the processing device is to: notify the user of theshaking of the mobile device during the recording of the video.